package com.woniuxy.service.impl;

import com.woniuxy.dao.RbacManagerDao;
import com.woniuxy.service.RbacManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Map;

/**
 * @Author: 马宇航
 * @Do: TODO
 * @DateTime: 22/05/16/0016 上午 11:53
 * @Component: 成都蜗牛学苑
 **/
@Service
public class RbacManagerServiceImpl implements RbacManagerService {
    @Autowired
    RbacManagerDao rbacManagerDao;
    @Override
    public List<Map<String, Object>> findAll() {
        return rbacManagerDao.findAll();
    }
    @Override
    public void sss(){
        System.out.println("my normal method");
    }

    @Override
    @Transactional()
    public int deleteOne(int id) {
        int i =rbacManagerDao.deleteById(id);
        int b = 1/0;
        return i;
    }
}
